﻿using System.Configuration;

namespace ErrorDumper.Configuration {
    public class FilterRuleConfigurationElementCollection : ConfigurationElementCollection {

        public FilterRuleConfigurationElementCollection() {
            AddElementName = "rule";
        }

        protected override ConfigurationElement CreateNewElement() {
            return new FilterRuleConfigurationElement();
        }

        protected override object GetElementKey(ConfigurationElement element) {
            return ((FilterRuleConfigurationElement)element).Name;
        }
    }
}